<?php
$dis_id=3;
include("../../inc/conn.inc");
include("../islogin2.php");
if($_POST[act]){
 $_POST["news_title"]=delwords($_POST["news_title"]);
  $_POST["news_content"]=delwords($_POST["news_content"]);
$type_id=explode("@",$_POST[type_id]);
$p_rs=@mysql_query("select * from city where id='$_POST[c_provinces]' and city_id=0");
$p_row=@mysql_fetch_array($p_rs);
$c_rs=@mysql_query("select * from city where id='$_POST[c_city]' and c_dj=2");
$c_row=@mysql_fetch_array($c_rs);
$c_city=($_POST[c_city])?$_POST[c_city]:0;
$n_sh=$_POST[n_sh]?$_POST[n_sh]:0;
$n_tj=$_POST[n_tj]?$_POST[n_tj]:0;
mysql_query("insert into news (member_id,news_title,type_id,type_name,type_id2,type_name2,pro_id,pro_name,city_id,city_name,news_content,news_time) values ('".$_COOKIE['user_id']."','$_POST[news_title]','1','三帝招标','$type_id[0]','$type_id[1]','$_POST[c_provinces]','$p_row[city_name]','$c_city','$c_row[city_name]','$_POST[news_content]','".date("Y-m-d H:i:s")."')");


echo "<script>alert('发布成功');location='zhaobiao.php'</script>";

}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.font1 {
	font-size: 16px;
}
-->
</style>
</head>
<script type="text/javascript" src="../js/left.js" charset="gb2312"></script>
<script language="javascript" src="/js/city.js" type="text/javascript" charset="gb2312"></script>
<body>
<div id="mian">
<?php include("../inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="../index.php" class="dh">会员助手</a> &gt;&gt; 招标 &gt;&gt; 发布招标信息</span></div>
<div class="left">
<?php include("../inc/left.php");?>
</div>
<div class="right">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;"><DIV> 发布威客招标信息 </DIV></TD>
   </TR>
</TABLE>
<br>
<table width="87" height="114" border="0" cellpadding="0" cellspacing="0" class="font1"　class="font1">
	<tr>
		<td height="59" class="font1">　　发布威客招标信息，接单任务，请另注册登陆三帝招标网</td>
	</tr>
	<tr>
		<td height="55" align="center"> <span class="font1"><a href="http://zb.sandib2b.cn">三帝招标网首页</a> 　　       <a href="http://zb.sandib2b.cn/index.php?lang=1&app=2&action=2">三帝招标网注册</a></span></td>
	</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<div class="onl"></div>
<?php include("../inc/foot.php");
?>
</div>
</body>
</html>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checkform(){
  if($("news_title").value==""){
     alert("招标主题不能为空");
     $("news_title").focus();
     return false;
}
if($("type_id").value==""){
     alert("招标分类不能为空");
     $("type_id").focus();
     return false;
}
if($("c_provinces").value==""){
     alert("省份不能为空");
     $("c_provinces").focus();
     return false;
}
if($("c_city").value==""){
     alert("城市不能为空");
     $("c_city").focus();
     return false;
} 
 
 
}
</script>